When we try to Install an Application through InstallApplicationCommand - https://developer.apple.com/documentation/devicemanagement/installapplicationcommand/command through MDM we are getting the below errors. Apple has not documented the reason for the below errors and we are setting these error responses more frequently and random in iOS 13 and iOS 14 versions.
Couldn’t communicate with a helper application
?xml version="1.0" encoding="UTF-8"?
!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
plist version="1.0"
dict
keyCommandUUID/key
stringInstallApplication/string
keyErrorChain/key
array
dict
keyErrorCode/key
integer4097/integer
keyErrorDomain/key
stringNSCocoaErrorDomain/string
keyLocalizedDescription/key
stringCouldn’t communicate with a helper application./string
/dict
/array
keyRejectionReason/key
stringNotSupported/string
keyStatus/key
stringError/string
keyUDID/key
string0000-000000000000/string
/dict
/plist
Rejection reason key as dictionary "NotSupported" but if multiple attempts are made, it succeeded in one of the attempts. This Error is seen in response to many commands and occurs very randomly. Commands such as SecurityInfo, RestartDevice, InstallProfile etc also gives this response. Feedback raised to apple is still unresolved. Refer this forum post. - https://developer.apple.com/forums/thread/663044 .
2. Purchase Batch Failed
?xml version="1.0" encoding="UTF-8"?
!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
plist version="1.0"
dict
keyCommandUUID/key
stringInstallApplication/string
keyErrorChain/key
array
dict
keyErrorCode/key
integer1005/integer
keyErrorDomain/key
stringDeviceManagement.error/string
keyLocalizedDescription/key
stringCould not install app./string
/dict
dict
keyErrorCode/key
integer12/integer
keyErrorDomain/key
stringAMSErrorDomain/string
keyLocalizedDescription/key
stringPurchase Batch Failed/string
/dict
/array
keyStatus/key
stringError/string
keyUDID/key
string0000-000000000000/string
/dict
/plist
3. The iTunes Store ID of the application could not be validated.
?xml version="1.0" encoding="UTF-8"?
!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
plist version="1.0"
dict
keyCommandUUID/key
stringInstallApplication/string
keyErrorChain/key
array
dict
keyErrorCode/key
integer12023/integer
keyErrorDomain/key
stringMCMDMErrorDomain/string
keyLocalizedDescription/key
stringThe iTunes Store ID of the application could not be validated./string
keyUSEnglishDescription/key
stringThe iTunes Store ID of the application could not be validated./string
/dict
/array
keyRejectionReason/key
stringCouldNotVerifyAppID/string
keyStatus/key
stringError/string
keyUDID/key
string0000-000000000000/string
/dict
/plist
4. An unknown error has occurred
?xml version="1.0" encoding="UTF-8"?
!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"
plist version="1.0"
dict
keyCommandUUID/key
stringInstallApplication/string
keyErrorChain/key
array
dict
keyErrorCode/key
integer5002/integer
keyErrorDomain/key
stringASDServerErrorDomain/string
keyLocalizedDescription/key
stringAn unknown error has occurred/string
/dict
/array
keyRejectionReason/key
stringNotSupported/string
keyStatus/key
stringError/string
keyUDID/key
string0000-000000000000/string
/dict
/plist
It would be of great help if there is a detailed documentation of list of all possible errors that MDM would receive and workaround to those error codes.